package com.ftg.exam.manage.service;

import com.ftg.exam.manage.mapper.DifficultiesMapper;
import com.ftg.exam.manage.pojo.Difficulties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwl
 * Create on 2019/9/2 15:38
 * function
 */
@Service
public class DifficultiesService {
    @Autowired
    DifficultiesMapper Mapper;
    public Difficulties showall(){
        return  Mapper.showall();


    }

    public int update(Difficulties difficulties){
        return Mapper.update(difficulties);
    }
    public int delete(String id){
        return Mapper.delete(id);
    }
    public int save(Difficulties difficulties){
        return Mapper.save(difficulties);
    }

    public List<Difficulties> childDifficulties(int pid) {
        return Mapper.childDifficulties(pid);
    }
}
